/* 美食分类按钮 */
.food-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 20px;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background: var(--link-color);
    color: white;
    transform: translateY(-2px);
}

/* 美食图片画廊 */
.food-gallery {
    margin: 1.5rem 0;
}

.gallery-image {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-image:hover {
    transform: scale(1.02);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

/* 美食评分 */
.food-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.rating-stars {
    color: #f1c40f;
    font-size: 1.2rem;
}

.rating-score {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

.rating-count {
    color: var(--text-color);
    opacity: 0.8;
}

/* 餐厅信息 */
.food-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--hover-color);
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.info-icon {
    font-size: 1.5rem;
}

.info-label {
    font-weight: bold;
    color: var(--text-color);
}

.info-value {
    color: var(--text-color);
    opacity: 0.8;
}

/* 菜品列表 */
.dish-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.dish-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 0.8rem;
}

.dish-name {
    font-weight: bold;
    color: var(--text-color);
}

.dish-price {
    color: #e74c3c;
    font-weight: bold;
}

.dish-rating {
    color: #f1c40f;
}

/* 美食地图 */
.food-map {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.map-container {
    position: relative;
    margin-top: 1rem;
}

.map-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-pin {
    position: absolute;
    font-size: 1.5rem;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.3s;
}

.map-pin:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

/* 热门餐厅 */
.restaurant-list {
    margin-top: 1rem;
}

.restaurant-item {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.restaurant-item:hover {
    transform: translateY(-5px);
}

.restaurant-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.restaurant-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,80%));
    color: white;
}

.restaurant-info h4 {
    margin: 0 0 0.3rem;
}

.restaurant-rating {
    color: #f1c40f;
    margin-bottom: 0.3rem;
}

.restaurant-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .food-info {
        grid-template-columns: 1fr;
    }

    .food-categories {
        justify-content: center;
    }

    .dish-list li {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* 动画效果 */
.post-item {
    animation: slide-in 0.8s ease-out;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 图片查看器 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,90%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.image-viewer img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
}

.image-viewer.active {
    display: flex;
    animation: fade-in 0.3s ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
} 